package com.syni.mdd.sjb.common.component.mybatis.common.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 电享生活商户APP 个人资料信息
 * </p>
 *
 * @author lcc
 * @since 2020-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DxshAppUserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联用户id
     */
    private Integer userId;

    /**
     * 头像
     */
    private String headImg;

    /**
     * 姓氏
     */
    private String surName;

    /**
     * 名字
     */
    private String name;

    /**
     * 1男 0女
     */
    private Integer sex;

    private Integer age;

    /**
     * 更新时间
     */
    @TableField(fill =FieldFill.UPDATE)
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime newTime;

    /**
     * 双自统一用户体系id
     * **/
    private String accountId;

    /**
     * 电话号码
     * **/
    private String phone;
    /**
     * unionId
     */
    private String unionId;

    /**
     * openId
     */
    private String openId;

    private String wechatName;

    private String wechatHeadUrl;

    private Integer roleId;


    public static final String ID = "id";


    public static final String USER_ID = "user_id";

    public static final String HEAD_IMG = "head_img";

    public static final String SUR_NAME = "sur_name";

    public static final String NAME = "name";

    public static final String SEX = "sex";
    public static final Integer SEX_DEFAULT = 1;

    public static final String AGE = "age";

    public static final String UPDATE_TIME = "update_time";

    public static final String NEW_TIME = "new_time";

    public static final String UNION_ID = "union_id";

}
